import { SerialportObj } from './一院电台函数.js'
let _serialportObj = new SerialportObj("COM1", "192000");
//注册监听器
_serialportObj.creatHeartMonitor("02");
_serialportObj.creatReportMonitor("03");
//循环写心跳帧
setInterval(_serialportObj.writeData("心跳帧"));
//配置电台参数
let cfgResponseData = _serialportObj.cfgRadioParms(new Buffer([0, 1]), "03", 3000)